<script type="text/javascript" src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<form>
    背景图片地址<input type="text" name="src" id="src"/>
    <a href="javascript:;" id="submit">提交参数</a>
</form>
<script type="text/javascript">
    $(function(){
        $("#submit").click(function(){
            var  src = $("#src").val();
            var data = {"src":src,'modelId':'{{$modelId}}' };
            $.post('/imagetext/saveparam',data,function(data){
                alert(data.message);
            },'JSON');
        });
    });
</script>